<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>通知详情页</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .nav_top {
            background-color: #f5f5f5;
        }
    </style>
</head>
<body>
<div class="container-fluid nav_top">
    <div class="navbar-header">
        <a class="navbar-brand" th:href="@{/}">淘淘商城</a>
    </div>
    <div>
        <ul class="nav navbar-nav navbar-right">
            <li class="active" th:if="${session.user}==null"><a th:href="@{/login}">亲，请登录</a></li>
            <li class="dropdown" th:unless="${session.user}==null">
                <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                   aria-expanded="false" href="#">
                    <span th:text="'欢迎您:' + ${session.user.username} + '!'"></span><span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a th:href="@{/user/logout}">退出</a></li>
                </ul>
            </li>
            <li>
                <a th:href="@{/user/cartList}">购物车</a>
            </li>
            <li>
                <a th:href="@{/user/order}">我的订单</a>
            </li>
        </ul>
    </div>
</div>
<div class="container">
    <div class="row text-center" style="margin-top: 20px;"><h1>公告</h1></div>
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title text-center" th:text="${notice.title}">Panel title</h3>
        </div>
        <div class="panel-body">
            <p th:text="${notice.content}">内容是：。。。。。。。</p>
        </div>
        <div class="panel-footer">
            <p class="text-right" th:text="${#dates.format(notice.updateTime,'yyyy年MM月dd日')}">2020年5月20日</p>
        </div>
    </div>
</div>

</body>
</html>